"use strict";
cc._RF.push(module, '0baafVZjoNGNrerM06vss7m', 'server');
// scripts/robotSys/server.ts

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("./common");
var log = console.log;
var localServer = /** @class */ (function () {
    function localServer() {
        this.roomsInfo = {};
        this.receiveHandlers = [];
    }
    localServer.prototype.initPlayer = function (receiveHandlers) {
        this.receiveHandlers = receiveHandlers;
        this.room = new common_1.roomInfo();
    };
    localServer.prototype.ontext = function (json) {
        var _this = this;
        log(json);
        this.roomsInfo[json.roomId].dealTask(json).then(function (data) {
            _this.receiveHandlers.map(function (h) { return h(data); });
        });
    };
    return localServer;
}());

cc._RF.pop();